<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>

<body>
  <iframe></iframe>
  <script>
    promise_test(async t => {
      const iframe = document.querySelector('iframe');
      const childSharedStorage = iframe.contentWindow.sharedStorage;
      iframe.remove();

      return childSharedStorage.runOperation("operation1");
    }, 'runOperation when frame is detached');
  </script>
</body>
